#numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
numbers=range(1,1000)
sum = 0
for i in numbers:
	if ( (i%3 == 0) | (i%5 == 0) ):
		sum = sum + i
		print i,sum
